Skip to content

feat(stubs): add titleSuffix and .title() to install scaffolding#9

Merged
anilcancakir merged 2 commits intomasterfrom
feat/route-page-titles
Apr 7, 2026
Merged

feat(stubs): add titleSuffix and .title() to install scaffolding#9
anilcancakir merged 2 commits intomasterfrom
feat/route-page-titles

Conversation

@anilcancakir
Copy link
Copy Markdown
Contributor

Summary

  • main.stub now scaffolds MagicApplication(titleSuffix: '{{ appName }}') — new projects get page title suffix out of the box
  • routes_app.stub now includes .title('Welcome') on the default route — demonstrates the fluent title API

Companion to fluttersdk/magic#49

Test plan

  • dart analyze — 0 issues
  • Stub output verified manually

Copilot AI review requested due to automatic review settings April 7, 2026 15:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the install scaffolding stubs to demonstrate/enable page title customization by default in newly generated Magic apps.

Changes:

  • Add titleSuffix to the generated MagicApplication(...) call in main.stub.
  • Add .title('Welcome') to the default MagicRoute.page(...) in routes_app.stub to showcase the fluent title API.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
assets/stubs/install/main.stub Adds titleSuffix argument to the generated MagicApplication constructor call.
assets/stubs/install/routes_app.stub Chains .title('Welcome') onto the default welcome route definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sentry
Copy link
Copy Markdown

sentry bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@anilcancakir anilcancakir merged commit 5ba0f1e into master Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants